    	<table class="customers-table">
          <tr class="customers-table-head">
            	<td width="160px">الحالة</td>
                <td width="140px">الاسم</td>
                <td width="100px">الايجار اليومى</td>
                <td width="110px">الايجار الاسبوعى</td>
                <td width="100px">الايجار الشهرى</td>
				  <td width="100px">اقصى خصم</td>
                <td width="100px">العمليات</td>
            </tr>
           
                <?php if(!empty($aprts)) { ?>
                <?php foreach($aprts as $aprt) {
				$status=query("SELECT * FROM apart_status 
				WHERE status_id=?",$aprt['status']);
				?>
                
                <tr class="cell-parent">
                    <td ><img src="images/home-<?php echo $aprt['status'];?>-s.png"  title="<?php echo $status[0]['status_txt']; ?>"/> </td>
                    <td id="apartment_name"><?php echo $aprt['apart_name']; ?>  </td>
                    <td id="daily-rent"><?php echo getpp($aprt['id'],$period,'daily'); ?></td>
                    <td id="weekly-rent"><?php echo getpp($aprt['id'],$period,'weekly'); ?></td>
                    <td id="monthly-rent" ><?php echo getpp($aprt['id'],$period,'monthly');?></td>
					 <td id="maxd" ><?php echo getmd($aprt['id'],$period);?></td>
                    <td ><input type="checkbox" name="apartment" class="chosen-apartments" apartment_id="<?php echo $aprt['id']; ?>"/>
                    <!--<a href="#" style="color:#000" class="chosen-apartment" id="<?php //echo $aprt['id']; ?>">أختر</a>--></td>
                </tr>
                <?php  }
                }else{
                  echo "<td colspan='7' class='red large' align=''>لا توجد نتائج</td>";
                } ?>

        </table>
        <div class="default-blue-button save_chosen_apartments">إضافة</div>
